package com.undsf.ezhttp;

import java.util.List;

/**
 * Created by Arathi on 2017/4/6.
 */
public class StringUtils {
    public static String Join(List<String> strings, String connector) {
        StringBuffer joined = new StringBuffer();
        boolean firstFlag = true;
        for (String s : strings) {
            if (firstFlag) {
                firstFlag = false;
            }
            else {
                joined.append(connector);
            }
            joined.append(s);
        }
        return joined.toString();
    }
}
